function FFMrefreshData () {
    // Get the date of the last version check. If it's more than one day old, check for new versions. Otherwise exit.
    var lastCheck = localStorage.getItem ("po_ffm_lastCheck");
    if (!lastCheck)
        lastCheck = "";

    var today = new Date ();
    var todayCheck = String(today.getDate());

    // Check for fresh data only each five minutes or if there's no stored info
    if (todayCheck == lastCheck && localStorage.getItem ('po_ffm_faction_settings')) {
      return;
    }

    var url = POgetServerUrl ("jirinatest/po_ffm_feed.php", false);
    var params = POgetServerParams ();
    var callback = function (httpRequest) {
//POlog ("po_ffm_dipl: Response: ReadyState:"+httpRequest.readyState+" Status:"+httpRequest.status);
        if (httpRequest.readyState == 4 && httpRequest.status == 200) {
            var response = httpRequest.responseText;
            var div = document.createElement ("div");
            div.innerHTML = response;
            localStorage.setItem ('po_ffm_faction_settings', div.firstChild.textContent);
            localStorage.setItem ("po_ffm_lastCheck", todayCheck);
//POlog ("po_ffm_dipl: Data arrived:"+response);
        }
    }
        
    POajaxPost (url, "GET", params, callback);
}

// To ensure that the po_utils.js is already loaded
window.onload = setTimeout(function(){
   FFMrefreshData();
}, 10);